package com.alks.entity.data.entity;

import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 付款明细
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PC_AP_AMT_FK")
@ApiModel(value="PcApAmt对象", description="付款明细")
public class PcApAmtFk implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @JsonIgnore
    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @ApiModelProperty(value = "单据号码")
    private String slipNo;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "订单时间")
    private LocalDateTime slipDate;

    @ApiModelProperty(value = "厂商ID")
    private String vendorNo;

    @ApiModelProperty(value = "厂商名称")
    private String vendorName;

    @ApiModelProperty(value = "序号")
    private Long item;

    @ApiModelProperty(value = "金额")
    private BigDecimal amt;

    @ApiModelProperty(value = "备注")
    private String remark;

    @JsonIgnore
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime sysDate;

    @ApiModelProperty(value = "操作员")
    private String sysUser;

    @JsonIgnore
    private String cfmFlag2;

    @JsonIgnore
    private LocalDateTime cfmDate;

    @JsonIgnore
    private String cfmUser;

    @ApiModelProperty(value = "结算方式")
    private String accountName;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime apCheckDate;

}
